package com.java.zhuiyun.api.series_course.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName SeriesCourse
 * @Description TODO
 * @Author 杨友朋
 * @Date 2023/8/30 11:23
 **/
@Data
@Table(name = "series_course")
public class SeriesCourse implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 系列课程主键id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 科目id
     */
    private Integer subjectId;

    /**
     * 课程ids
     */
    private String courseIds;

    /**
     * 系列图片
     */
    private String subjectImage;

    /**
     * 系列介绍
     */
    private String subjectCourseInfo;

    /**
     * 系列标题
     */
    private String subjectCourseTitle;

    /**
     * 教师id
     */
    private Integer teacherId;

    /**
     * 课程状态
     */
    private String subjectCourseStatus;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern ="yyyy-MM-dd" )
    private Date updateTime;

    /**
     * 逻辑删除
     */
    private Integer delFlag;
}